public class Main {
    public static void main(String[] args) {
        //定义观察目标对象
        ControlCenter controlCenter;
        controlCenter = new ConcreteControlCenter("队伍1");


        IObserver player1,player2,player3,player4;

        player1 = new Player("眼看喜");
       System.out.println(controlCenter.join(player1));

        player2 = new Player("耳听怒");
        System.out.println(controlCenter.join(player2));

        player3 = new Player("鼻嗅爱");
        System.out.println(controlCenter.join(player3));

        player4 = new Player("舌尝思");
        System.out.println(controlCenter.join(player4));


        controlCenter.notifyObserver(player1.getName());
        System.out.println(controlCenter.quit(player4));


    }

}
